# urls.py
# ..
url(r'hello-fn/(?P<name>\w+)/$', views.hello_fn),
url(r'hello-fn/$', views.hello_fn),